<template>
    <div>
        <p>评论回复</p>
        <ul>
            <ItemCom @onDel="onDel" v-for="el,index in arr" :el="el" :index="index" />
        </ul>
    </div>
</template>

<script setup>
import {defineEmits} from 'vue'
const emit = defineEmits();
import ItemCom from './ItemCom.vue';

const prop = defineProps(['arr']);
// console.log(prop.arr);

const onDel = index=>{
    // console.log(prop.index);
    emit('onDel',index);
}
</script>

<style lang="scss" scoped></style>